/**HEADER********************************************************************
* 
* Copyright (c) 2008 Freescale Semiconductor;
* All Rights Reserved
*
*************************************************************************** 
*
* THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESSED OR 
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  
* IN NO EVENT SHALL FREESCALE OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 
* THE POSSIBILITY OF SUCH DAMAGE.
*
**************************************************************************
*
* $FileName: irtc_mpc512x.h$
* $Version : 3.8.6.1$
* $Date    : Feb-13-2012$
*
* Comments:
*
*   Processor family specific file needed for RTC module.
*
*END************************************************************************/

#ifndef __irtc_mpc512x_h__
#define __irtc_mpc512x_h__


#define DEVSPEC_RTC_RTCISR_SW       2
#define DEVSPEC_RTC_RTCISR_ALM      2
#define DEVSPEC_RTC_RTCIENR_SW      4
#define DEVSPEC_RTC_RTCIENR_ALM     4

#define DEVSPEC_RTC_INT_ALL_MASK    (DEVSPEC_RTC_RTCIENR_SW | DEVSPEC_RTC_RTCIENR_ALM)



/******************************************************************************
 * interrupt masks definitions (RTC_ISR and RTC_IER registers)                *
 ******************************************************************************/  


/* IRTC time reperesentation */
typedef struct rtc_time_struct
{
    uint_8  seconds;
    uint_8  minutes;
    uint_8  hours;
    uint_8  days;
    uint_8  wday;
    uint_8  month;
    uint_16 year;
} RTC_TIME_STRUCT, _PTR_ RTC_TIME_STRUCT_PTR;



#endif   /* __irtc_mpc512x_h__ */
